﻿<UserControl x:Class="P2.Cuberry.Modules.SimpleSCM.SCSupplierInvoice.SCSupplierInvoicesFindView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
    Margin="0" MinWidth="230" Width="Auto" MinHeight="230" Height="250">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>                               
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>

    <Grid Keyboard.KeyDown="Control_KeyDown" Width="485">

        <Grid.Resources>
            <Image x:Key="FindIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleSCM.SCSupplierInvoice;component/Images/find16.gif" />
            <Image x:Key="ClearIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleSCM.SCSupplierInvoice;component/Images/clear.png" />
            <Image x:Key="AddIcon" Height="16" Width="16"  Visibility="Visible"  Source="/P2.Cuberry.Modules.SimpleSCM.SCSupplierInvoice;component/Images/add.png" />
        </Grid.Resources>


        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="4" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="2" />
        </Grid.RowDefinitions>


        <Menu Grid.Column="0" Grid.Row="0" x:Name="menuMain" Height="25" VerticalAlignment="Top" Background="{DynamicResource MyBlueBackgroundGradientBrush}" >
           
            <MenuItem Name="btnSCSupplierInvoiceFind"  Margin="2,4,0,2" Header="{Translate SCSupplierInvoiceFind}"  x:Uid="btnSCSupplierInvoiceFind"  Command="{Binding SCSupplierInvoiceFindCommand}" Icon="{StaticResource FindIcon}" Style="{StaticResource P2FindMenuItemStyle}" MenuItem.Click="btnSCSupplierInvoiceFind_Click" />
          
            <MenuItem Name="btnSCSupplierInvoiceAdd" Margin="2,4,0,2"  Header="{Translate SCSupplierInvoiceAdd}" x:Uid="btnSCSupplierInvoiceAdd" Command="{Binding SCSupplierInvoiceAddCommand}" Icon="{StaticResource AddIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
            <MenuItem Name="btnSCSupplierInvoiceClr" Margin="2,4,0,2"  Header="{Translate SCSupplierInvoiceClr}"  x:Uid="btnSCSupplierInvoiceClr" Command="{Binding SCSupplierInvoiceClrCommand}" Icon="{StaticResource ClearIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
        </Menu>
        
        <Label Grid.Row="2"  Height="23" Margin="-2,30,0,0" Name="SupplierInvoiceNoL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Content="{Translate SupplierInvoiceNoL}" />
        <TextBox Grid.Row="2" Height="23" Margin="88,30,0,0" Name="SupplierInvoiceNo" Text="{Binding SupplierInvoiceNo}" VerticalAlignment="Top" Style="{StaticResource P2TextBoxStyle}" HorizontalAlignment="Left" Width="107" />


        <Label Grid.Row="2" Height="23" Margin="-2,60,0,0" Name="FiscalYearIDL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate FiscalYearIDL}" />
        <ComboBox Grid.Row="2" Height="23" Margin="88,60,0,0" Name="FiscalYearID" ItemsSource="{Binding FiscalYears}" SelectedValue="{Binding FiscalYearID}" VerticalAlignment="Top" SelectedValuePath="FiscalYearID" DisplayMemberPath="FiscalYearName" Style="{StaticResource P2ComboBoxStyle}" HorizontalAlignment="Left" Width="107" />

        <Label Grid.Row="2" Height="23" Margin="-1,85,0,0" Name="DocumentNoL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL" Content="{Translate DocumentNoL}" />
        <TextBox Grid.Row="2" Height="23" Margin="88,85,290,0" Name="DocumentNo" VerticalAlignment="Top" Text="{Binding DocumentNo}" Style="{StaticResource P2TextBoxStyle}" />


        <Label Grid.Row="2" Height="23" Margin="-2,115,0,0" Name="SupplierReceiptDateStartL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate SupplierReceiptDateStartL}" />
        <DatePicker Grid.Row="2" Height="23" Margin="88,115,290,0" Name="SupplierReceiptDateStart" SelectedDate="{Binding SupplierReceiptDateStart}" VerticalAlignment="Top" />        

        <Label Grid.Row="2" Height="23" Margin="-2,140,0,0" Name="SupplierReceiptDateEndL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate SupplierReceiptDateEndL}" />
        <DatePicker Grid.Row="2" Height="23" Margin="88,140,290,0" Name="SupplierReceiptDateEnd" SelectedDate="{Binding SupplierReceiptDateEnd}"   VerticalAlignment="Top" />
        <!--<DatePicker Grid.Row="2" Height="23" Margin="88,140,290,0" Name="SupplierReceiptDateEnd" SelectedDate="{Binding SupplierReceiptDateEnd}" Text="{Binding SupplierReceiptDateEnd}"   VerticalAlignment="Top" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" />-->

        <Label Grid.Row="2" Height="23" Margin="-2,170,0,0" Name="StatusIDL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate StatusIDL}" />
        <ComboBox Grid.Row="2" Height="23" Margin="88,170,290,0"  ItemsSource="{Binding WorkflowStatusses}" SelectedIndex="1" Name="StatusID" SelectedValue="{Binding StatusID}" VerticalAlignment="Top" SelectedValuePath="StatusID" DisplayMemberPath="StatusNameCur" Style="{StaticResource P2ComboBoxStyle}"  />
        
    </Grid>
</UserControl>
